<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial;">
<h1>Order Wizard Step 2<br />
  <br />
Add to Quantity Adjustment Suggestion / Special Order Suggestion</h1>
<form id="form2" name="form2" method="post" action="">
  <table width="700" border="1" cellspacing="0" cellpadding="10">
    <tr>
      <td>Barcode</td>
      <td><label for="code_product"></label>
      <input name="code_product" type="text" id="code_product" value="<?php echo $this->codeProduct;?>" />
      <input type="submit" name="btn_find" id="btn_find" value="Find The Product" /></td>
    </tr>
    <tr>
      <td colspan="2">Apos Description: <?php echo $this->des;?></td>
    </tr>
    <tr>
      <td>Qty In APOS (ONLINE)</td>
      <td><input name="qty_apos" type="text" id="qty_apos" value="<?php echo $this->shopStock; ?>" readonly="readonly" /></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><div style="padding:5px; border:#900 solid 2px; color:#900; font-weight:bold;">Very Important !! Sycnhronize Using Online Apos Before You Do The Suggestion !! <br />
      ( <a href="http://<?php echo WEB_IP; ?>/docs/Quantity_Adjustment_Suggestion_tutorial.doc" target="_blank">Click To See Why</a> )</div></td>
    </tr>
    <tr>
      <td>Qty Actual On hand</td>
      <td><input type="text" name="qty_act" id="qty_act" /></td>
    </tr>
    <tr>
      <td>Qty Need To Order</td>
      <td><input name="qty_order" type="text" id="qty_order" value="0" /></td>
    </tr>
    <tr>
      <td colspan="2"><input type="checkbox" name="cb_confirm" id="cb_confirm" />
I have double checked and confirming the 
  qty actual on hand is correct,<br />
I need to adjust it and notify my shop manager.</td>
    </tr>
  </table>

  <br />
  <input type="submit" name="btn_add" id="btn_add" value="Add To Adjustment Suggestion Below" />
</form>
<h1><br />

  Quantity Adjustment Suggestion / Special Order Suggestion<br />
</h1>
<form id="form1" name="form1" method="post" action="">
<table width="1000" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">No</th>
    <th scope="col">Code</th>
    <th scope="col" style="width:300px;" >Description</th>
    <th scope="col">Qty(Apos)</th>
    <th scope="col">Qty(Act)</th>
    <th scope="col">Adjust</th>
    <th colspan="2" scope="col">Qty(Order)</th>
    <th scope="col">Added On</th>
    <th scope="col">Remove?</th>
  </tr>
  <?php if($this->aList){
		foreach($this->aList as $k => $v)  {
 ?>
  <tr>
    <td><?php echo $k + 1;?></td>
    <td><?php echo $v['code_product']?></td>
    <td><?php echo Model_System_Downloadhelper::downloadUrl("http://".SERVER_IP_COMM."/products/get-old-apos-product-description/barcode/".$v['code_product']);?></td>
    <td><?php echo $v['qty_sys']?></td>
    <td><?php echo $v['qty_act']?></td>
    <td><?php echo $v['qty_adjust']?></td>
        <td><label for="cb_change">
      <input name="cb_change[<?php echo $v['id_adjust']?>]" type="checkbox" id="cb_change" title="Change The Qty" value="1" />
    </label></td>
    <td>
      <input type="text" name="qty_order[<?php echo $v['id_adjust']?>]" id="qty_order" style="width:50px;" value="<?php echo $v['qty_order']?>"  /></td>

    <td><?php echo $v['date_add']."<br />".$v['time_add']?></td>
    <td align="center"><input name="cb_rm[<?php echo $v['id_adjust']?>]" type="checkbox" id="cb_rm" value="1" />
      <label for="cb_rm"></label></td>
  </tr>
  <?php }
  }?>
</table>
<p>Manager Attendance Password:   <input type="password" name="mgr_pass" id="mgr_pass" /> 
  <br />
  <br />
  <input type="submit" name="btn_revise" id="btn_revise" value="Save Changes &amp; Remove Selected" />
  <br />
</p>

</form>
<h1><br />
  Quantity Adjustment / Special Order List (Frozen / Order)
</h1>
<table width="1200" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th  scope="col">No</th>
    <th  scope="col">Code</th>
    <th width="300" style="width:300px;" scope="col" >Description</th>
    <th scope="col">Qty(Apos)</th>
    <th  scope="col">Qty(Act)</th>
    <th scope="col">Adjust</th>
    <th scope="col">Qty(Order)</th>
    <th scope="col">Added On</th>
    <th  scope="col">Ka_No</th>
    <th scope="col">Order_No</th>
  </tr>
  <?php if($this->cList){
		foreach($this->cList as $k => $v)  {
 ?>
  <tr>
    <td><?php echo $k + 1;?></td>
    <td><?php echo $v['code_product']?></td>
    <td><?php echo file_get_contents("http://".SERVER_IP_COMM."/products/get-old-apos-product-description/barcode/".$v['code_product']);?></td>
    <td><?php echo $v['qty_sys']?></td>
    <td><?php echo $v['qty_act']?></td>
    <td><?php echo $v['qty_adjust']?></td>
    <td><?php echo $v['qty_order']?></td>
    <td><?php echo $v['date_add']."<br />".$v['time_add']?></td>
    <td align="center"><?php echo (substr($v['no_ka'],0,4)=="TMPA")?'FREEZE':$v['no_ka'];?></td>
    <td align="center"><?php echo $v['no_order']?></td>
  </tr>
  <?php }
  }?>
</table><h1><br />
<a href="/products/extra-order/shop/<?php echo $this->shop; ?>">NEXT </a></h1>
</body>
</html>
